﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddEdit.aspx.cs" Inherits="CardLogistics.Web.MainPage.PutOutCard.PutInAllocation.AddEdit" %>
<%@ Register Src="../../../Controls/WebUserControl_Nav.ascx" TagName="WebUserControl_Nav"
    TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>半成品/成品卡调拨入库-编辑</title>
    <link href="../../../css/style.css" rel="stylesheet" type="text/css" />
    <link href="../../../css/selPage.css" rel="stylesheet" type="text/css" />
    <script src="../../../js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script src="../../../js/valReq.js" type="text/javascript"></script>
    <script src="../../../js/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="../../../js/jquery.tipswindow.2.0.js" type="text/javascript"></script>
    
    <script type="text/javascript">
        function valReq() {
            var altStr = valid_isempty('ALLOCATIONNO', '入库单号');
            altStr += valid_isempty('SendNo', '发放单号');
            altStr += valid_isempty('ALLOCATIONDATE', '调入日期');
            altStr += valid_isempty('ALLOCATIONNUMBER', '调入数量');
            if (altStr != "") {
                alert(altStr);
                return false;
            }
           else
             return true;
        }
       
        $(document).ready(function () {

            $("#SendNo").click(function () { //选择发放单号
                $.tipsWindow({
                    ___title: "选择发放单号",
                    ___content: "url:get?../../SelectPage/SelPutOutSendCard.aspx",
                    ___width: "1000",
                    ___height: "500",
                    ___drag: "___boxTitle",
                    ___showbg: true
                });
            });
          })
      
    </script>
</head>
<body>
    <form id="frmFather" runat="server">
    <uc1:WebUserControl_Nav ID="WebUserControl_Nav1" runat="server" />
   <%=TitleName %> 
   <input type="hidden" id="hf_ConId" name="hf_ConId" runat="server" />
    <input type="hidden" id="hfEditSumCard" runat="server" />
    <table class="theForm" width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td class="titleTxt">
                调拨入库单号：
            </td>
            <td class="contentTxt">
                <input id="ALLOCATIONNO" runat="server" type="text" class="dfinputNoEmp" readonly="readonly"  maxlength="25"/>
            </td>
            <td class="titleTxt">
                发放单号：
            </td>
            <td class="contentTxt">
                 <input id="SendNo" runat="server" readonly="readonly" type="text" class="dfinputImg" maxlength="25"/>
                <asp:HiddenField ID="hf_SendId" runat="server" />
            </td>
        </tr>
        <tr>
            <td class="titleTxt">
                调入日期：
            </td>
            <td class="contentTxt">
                <input id="ALLOCATIONDATE" runat="server" type="text" class="Wdate" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" />
            </td>
            <td class="titleTxt">
                调入数量：
            </td>
            <td class="contentTxt">
                <input id="ALLOCATIONNUMBER" runat="server" type="text" class="dfinputNoEmp" onkeydown="onlyNum();" maxlength ="9"/>
            </td>
        </tr>
        <tr>
            <td class="titleTxt">
                备注：
            </td>
            <td colspan="3">
                <input id="REMARKS" runat="server" type="text" class="dfinput" style="width: 90%;" maxlength="200"/>
            </td>
        </tr>
        <tr class="btntr">
            <td colspan="4" align="center">
                <asp:Button ID="btn_Add" CssClass="btn" runat="server" Text="保存" OnClientClick="return valReq();"
                 OnClick="btn_Add_Click"  />
                <input type="button" class="btn" value="返回" onclick="javascript:history.go(-1);" />
            </td>
        </tr>
    </table>
    </form>
</body>
</html>